<?Php
	require_once('../Model/getconfig.php');
	if(isset($_POST['username'])) $strusername=$_POST['username'];
						
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>RT-Theme 10 - Premium Corporate Template</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" type="text/css" href="css/style_cf.css" />
<link rel="stylesheet" type="text/css" href="css/prettyPhoto.css" media="screen" />
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="js/jquery.easing.1.1.1.js"></script>
<script type="text/javascript" src="js/jquery.cycle.all.min.js"></script>
<script type="text/javascript" src="js/jquery.validate.js"></script>
<script type="text/javascript" src="js/jquery.form.js"></script>
<script type="text/javascript" src="js/jquery.prettyPhoto.js"></script>
<script type="text/javascript" src="js/cufon.js"></script>
<script type="text/javascript" src="js/jquery.tools.min.js"></script>
<script type="text/javascript" src="js/script.js"></script>

<script  language="JavaScript" src="businesslist.js"></script>

 
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="css/ie6.css" />
<script type='text/javascript' src='js/dd_belated_png.js'></script>
<script>DD_belatedPNG.fix('.png');</script>
<![endif]-->


        <link rel="stylesheet" href="headermenu/jquery.css" type="text/css" media="screen">


        <script src="headermenu/jquery.js" type="text/javascript">
        </script>
        <script type="text/javascript">
            $(document).ready(function(){
                var SelfLocation = window.location.href.split('?');
                switch (SelfLocation[1]) {
                    case "defined_width":
                        $(".MegaMenuLink").megamenu(".MegaMenuContent", {
                            width: "850px"
                        });
                        break;
                    case "auto_width_right":
                        $(".MegaMenuLink").megamenu(".MegaMenuContent", {
                            justify: "right"
                        });
                        $('.MegaMenu').css("text-align", "right");
                        break;
                    case "defined_width_right":
                        $(".MegaMenuLink").megamenu(".MegaMenuContent", {
                            justify: "right",
                            width: "850px"
                        });
                        $('.MegaMenu').css("text-align", "right");
                        break;
                    default:
                        $(".MegaMenuLink").megamenu(".MegaMenuContent");
                        break;
                }
            });
        </script>
        <style type="text/css">
           .adHeadline {font: bold 10pt Arial; text-decoration: underline; color: #003366;}
           .adText {font: normal 10pt Arial; text-decoration: none; color: #000000;}
        </style>

</head>
<body>

  <?php
		$count=0;	
		$arrMenu=Model_membermaster::get_member_details_user($strusername);
		foreach($arrMenu as $objMenu){ 
		 $count++;
		 $userid=$objMenu->getuserid();
		 $username=$objMenu->getUsername();
		 
		 $password=$objMenu->getPassword();
		 $Name=$objMenu->getFirstname();
		// $Name=$objMenu->getSecondname();
		 $country=$objMenu->getCountry();
		 $city=$objMenu->getCity();
		 $state=$objMenu->getState();
	     $selectdistrict=$objMenu->getDistrict();
		 $Address=$objMenu->getAddress();
		 $pincode=$objMenu->getPincode();
		 $email=$objMenu->getEmail();
		 $mobileno=$objMenu->getMobileno(); 		 
		 $djoin=$objMenu->getDjoin();
		 $Businesstype=$objMenu->getBusinesstype();
		 $Businessfield=$objMenu->getBusinesssubfield();
		 $details=$objMenu->getDetails();
		 
		 if($count%2==0)
		 	$bgcolour="#E5E5E5";
		 else
		 	$bgcolour="#FFFFFF";
	
}	

?>	
	 
<!-- header -->
<div id="container">
<div id="header" class="clearfix">
    <!-- logo -->
    <div id="logo"><a href="index.html" title=""><img src="images/logo.png" alt="" class="png" /></a></div>
    <!-- /logo -->

    <!-- header right -->
    <div id="header_right">
	
	<!-- search -->
	<div class="search_bar">
	    <form action="#" method="get">
		<input type="text" class="search_text" name="q" value="search" /><input type="image" src="images/pixel.gif" class="searchsubmit" alt="" />
	    </form>
	</div>
	<!-- / search-->
	
	<!-- header links -->
	<div class="top_links">
	    <ul>
		<li class="first"><a href="index.html" title="">Home</a></li>
		<li><a href="index.html" title="">Career</a></li>
		<li><a href="index.html" title="">Contact Us</a></li>
	    </ul>
	</div>
	<!-- / header links -->

	<div class="clear"></div>

	<!-- header slogan -->
	<div class="top_slogan">
	    <h4>Welcome <?Php echo $username?></h4>
	</div>
	<!-- /header slogan -->

    </div>
    <!-- /header right -->
</div>
</div>
<!-- /header -->

<!-- containers -->
<div id="container1">
<div id="container2">
<div id="container3">
    <!-- header -->
 <?php require_once('menuheader.php') ?>

<!-- /header -->
<!-- Sidebar --><!--  content -->	
<div class="content sub"> 

 <!--Inserting main bage starting --><br />
<br />
<br />
	<div id="result"></div>

<div id="contact_form">
	    <form action="edit_registration_save.php" name="contact_form" id="validate_form" method="post"   enctype="multipart/form-data">
		<ul>
<li><label for="name"><span class="product-reviews-title">Full Name</span>: (*)</label>
<input name="texName" type="text" class="required" id="texName" value="<?Php echo $Name ?>" size="75" /> 
              </li>
              <li><label for="State"><span class="product-reviews-title">Type of Business</span>: (*)</label>
<select class="required" name="cmbTypeofbusiness" id="cmbTypeofbusiness"   onChange="subbusinesscheck(this.value)"   >
                              <option value="">Type of Business</option>
<?Php
	$arrMenu=Model_typeofbusiness::get_Typeofbusiness();
	foreach($arrMenu as $objMenu){ 
		//$cCode=$objMenu->getFixedcode(); 
		$Typeofbusiness=$objMenu->getTypeofbusiness(); 

	if($Businesstype==$Typeofbusiness)
	{
?>								
	         <option value="<?Php echo $Typeofbusiness ?>" selected="selected" ><?Php echo $Typeofbusiness ?></option>
<?Php
}
else{
?>	
			<option value="<?Php echo $Typeofbusiness ?>" ><?Php echo $Typeofbusiness ?></option>		 
<?php		
}		

	}
							
?>		
                </select> </li>
                
<li><label for="State"><span class="product-reviews-title">Select your field</span>: (*)</label><div id="branch">
<select class="required" name="cmbBusinesssublist" id="cmbBusinesssublist"  >
                 <option value="">Select your field</option>
                </select>
                </div> </li>                
              
<li>
  <label for="address">Address: (*)</label>
  <textarea  id="texaddr" name="texaddr" rows="8" cols="40" class="required"><?Php echo $Address ?></textarea></li>

<li><label for="State"><span class="product-reviews-title">State</span>: (*)</label>
<select class="required" name="cmbcontState" id="cmbcontState"  >
                              <option value="">Select State</option>
<?Php
	$arrMenu=Model_fixedcode::get_Fixedcode('STAT');
	foreach($arrMenu as $objMenu){ 
	//	$cCode=$objMenu->getFixedcode(); 
		$cCodeDesc=$objMenu->getCodedesc(); 

	if($cCodeDesc==$state)
	{
?>								
	         <option value="<?Php echo $cCodeDesc; ?>" selected="selected"><?Php echo $cCodeDesc; ?></option>
<?Php
}
else{
?>	
	         <option value="<?Php echo $cCodeDesc; ?>" ><?Php echo $cCodeDesc; ?></option>
<?php		
}								

	}
							
?>		
                </select> </li>
<li>
  <label for="State"><span class="product-reviews-title">District</span>: (*)</label>
  <span class="fieldbox">
  <select class="required" name="cmbDist"  id="cmbDist"  >
    <option value="">Select District</option>
    <?Php
	$arrMenu=Model_listeddistrict::get_Listeddistrictvalue();
	foreach($arrMenu as $objMenu){ 
		$district=$objMenu->getDistrict(); 
	
	if($selectdistrict==$district)
	{
?>								
    <option value="<?Php echo $district; ?>" selected="selected" ><?Php echo $district; ?></option>
<?Php
}
else{
?>	
    <option value="<?Php echo $district; ?>" ><?Php echo $district; ?></option>
<?php		
}								
	

	}
?>
  </select>
  </span></li>
<li><label for="email">Your Email: (*)</label>
  <input name="textEmail" type="text" class="required" id="textEmail" value="<?Php echo $email ?>" maxlength="35"	 /> 
</li>
<li>
  <label for="email">Your Website: </label>
  <input name="textwebsite" type="text" class="" id="textwebsite" value="" maxlength="75"	 /> 
</li>
			<li>
			  <label for="phone">Contact Number: (*) </label>
			<input name="phone" type="text" class="required" id="phone" value="<?Php echo $mobileno ?>" maxlength="15" /> 
			</li>
            <li>
              <label for="address">Your Details: (*)</label>
              <textarea  id="texdetails" name="texdetails" rows="8" cols="40" class="required"><?Php echo $details ?></textarea>
            </li>
            <li>
              <label for="address">Upload Photo 1: (*)</label>
              <input name="image1" id="image1" value="" type="file" />
            </li>			
            <li>
              <label for="address">Upload Photo 2: (*)</label>
              <input name="image2" id="image2" value="" type="file" />
            </li>		
            <li>
              <label for="address">Upload Photo 3: (*)</label>
              <input name="image3" id="image3" value="" type="file" />
            </li>		
            <li>
              <label for="address">Upload Photo 4: (*)</label>
              <input name="image4" id="image4" value="" type="file" />
            </li>											
<br />

    
	<hr />
			<li><input type="submit" class="button" value="Send"  /><span class="loading"></span></li>
		</ul>
		<input type="hidden" name="username" value="<?Php echo $strusername ?>" />
		<input type="hidden" name="userid" value="<?Php echo $userid ?>" />
	    </form>
	</div> 

</div>
<!-- content -->
 
<div class="clear"></div>
</div>
</div>                                          
</div>

<!-- /containers -->

<!-- footer -->
<div id="footer">
    <div class="footer_con"> 
	<!-- copyright text -->
	<div class="part1">
	    Copyright &copy; 2009 Company Name, Inc.
	</div>

	<!-- links -->
	<div class="part2">	    
	    <ul>
		<li class="first"><a  href="index.html" title="">Home</a></li>
		<li><a  href="index.html" title="">Legal</a></li>
		<li><a  href="index.html" title="">Privacy</a></li>
		<li><a  href="index.html" title="">Contact</a></li>
	    </ul>
	</div>
   </div>
</div>
<!-- /footer -->

</body>
</html>



























